package com.example.bookshop.repository;


import com.example.bookshop.entity.Business;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BusinessRepository {
    public int addBusiness(Business business);//添加店铺
    public Business findBusinessById(Integer id);//根据店铺号查询店铺
    public Business findBusinessByUserId(Integer id);//根据用户Id查询店铺
    public List<Business> findAllBusiness();//查找所有店铺
    public int updateBusiness(Business business);//修改店铺信息
    public int deleteBusiness(Integer id);//删除店铺
    public int deleteListBusiness(List<Integer> list);//删除选中的店铺
    public int deleteAllBusiness();//删除所有店铺
}
